<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1">

        <title>{{ session()->get('doain')->name }}</title>

        <!-- Fonts -->

        <!-- Styles -->
        <style>
            html, body {
                background-color: #fff;
                color: #636b6f;
                font-family: 'Raleway', sans-serif;
                font-weight: 100;
                height: 100vh;
                margin: 0;
            }
            .left,.right{
                float: left;
            }
            .left{ width: 300px;height: 200px }
            .time{ margin-top: 40px }
            .iterms{  margin-top: 20px;background: #e5f3ff }
            .left img{ width: 180px }
            .right img{ height: 250px }
            .pagenav li{ display: inline-block;}
            .pagenav ul{ margin-left: 70%;margin-top: 20px }
        </style>
    </head>
    <body>
        <div>
            <img src={{ session()->get('doain')->logo }} />
        </div>
        <div >
            @foreach($article as $aort)
            <div class="iterms">
                <div class="left">
                    <img src=<?php echo  html_entity_decode($aort->thumbnail) ?> /><br/>
                    缩略图
                </div>
                <div class="right">
                    <?php echo  html_entity_decode($aort->content) ?>
                    <div class="time">发布时间：{{$aort->created_at}}</div>
                </div>
                <div style="clear: both"></div>
            </div>
            @endforeach
        </div>
        <div class="pagenav">
            {{ $article->links() }}
        </div>
        <div style="text-align: center;margin-top: 200px">
            {{ session()->get('doain')->botton }}
        </div>
    </body>
</html>
